
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <script src="../static/js/jquery-3.5.1.min.js"></script>
    <link th:href="@{css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{css/carousel.css}" rel="stylesheet">
</head>

<header>
    <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-success">
        <div class="container-fluid">
            <a class="navbar-brand" th:href="@{index}">景植植物</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
                    aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarCollapse">
                <ul class="navbar-nav me-auto mb-2 mb-md-0">
                    <li class="nav-item">
                        <a class="nav-link active" aria-current="page" th:href="@{index}">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" aria-current="page" th:href="@{plant/list}">植物列表</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="compose.html">搭配</a>
                    </li>

                    <!--如果未登录-->
                    <div sec:authorize="!isAuthenticated()">
                        <a class="nav-link active" th:href="@{/toLogin}" role="button">

                            </svg>
                            登录
                        </a>
                    </div>

                </ul>

            </div>
        </div>
    </nav>
</header>

